package cn.engage.system.mapper;


import cn.engage.basic.mapper.BaseMapper;
import cn.engage.system.domain.Permission;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author itsource
 * @since 2022-10-24
 */
@Repository
public interface PermissionMapper extends BaseMapper<Permission> {

    Permission findBySn(String sn);

    void addMiddle(@Param("rid") Long id,@Param("permissions") List<Long> permissions);

    void deleteMiddle(Long id);


    List<Long> findByIdMiddle(Long id);

    List<String> findByLogininfoId(Long logininfoId);
}
